import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';

/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.
 */
const sidebars: SidebarsConfig = {
  // By default, Docusaurus generates a sidebar from the docs folder structure
  // tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],

  // But you can create a sidebar manually
  tutorialSidebar: [
    {
      type: 'doc',
      id: 'intro',
    },
    {
      type: 'category',
      collapsed: false,
      label: '快速上手',
      items: [
        {
          type: 'doc',
          id: 'getting-started/concept',
        },
        {
          type: 'doc',
          id: 'getting-started/trial',
        },
        {
          type: 'doc',
          id: 'getting-started/model',
        },
        {
          type: 'doc',
          id: 'getting-started/app',
        },
      ],
    },
    {
      type: 'category',
      collapsed: true,
      label: '模型',
      link: {
        type: 'doc',
        id: 'models',
      },
      items: [
        {
          type: 'doc',
          id: 'models/cards',
        },
        {
          type: 'doc',
          id: 'models/uploading',
        },
        {
          type: 'doc',
          id: 'gai/gai',
        },
        {
          type: 'doc',
          id: 'models/downloading',
        },
        {
          type: 'doc',
          id: 'models/widgets',
        },
        {
          type: 'doc',
          id: 'models/model-engine-api',
        },
        {
          type: 'doc',
          id: 'models/download-stats',
        },
      ],
    },
    {
      type: 'category',
      collapsed: true,
      label: '数据集',
      link: {
        type: 'doc',
        id: 'datasets',
      },
      items: [
        {
          type: 'doc',
          id: 'datasets/cards',
        },
        {
          type: 'doc',
          id: 'datasets/uploading',
        },
        {
          type: 'doc',
          id: 'datasets/downloading',
        },
      ],
    },
    {
      type: 'category',
      collapsed: true,
      label: '应用',
      link: {
        type: 'doc',
        id: 'apps',
      },
      items: [
        {
          type: 'doc',
          id: 'apps/overview',
        },
        {
          type: "doc",
          id: "apps/iluvatar-ai-app-contest"
        },
        {
          type: 'doc',
          id: 'apps/gpu-upgrades',
        },
        {
          type: 'doc',
          id: 'apps/storage',
        },
        {
          type: 'doc',
          id: 'apps/sdks-gradio',
        },
        {
          type: 'doc',
          id: 'apps/sdks-streamlit',
        },
        {
          type: 'doc',
          id: 'apps/sdks-static',
        },
        {
          type: 'doc',
          id: 'apps/sdks-docker',
        },
        {
          type: 'doc',
          id: 'apps/china-computing-power',
        },
        {
          type: 'doc',
          id: 'apps/qa',
        },
      ],
    },
    {
      type: 'category',
      collapsed: true,
      label: '引擎',
      items: [
        {
          type: 'doc',
          id: 'engines/model-engine',
        },
        {
          type: 'doc',
          id: 'engines/autotrain-engine',
        },
      ],
    },
    {
      type: 'doc',
      id: 'repositories',
    },

    {
      type: 'category',
      collapsed: true,
      label: 'Serverless API',
      link: {
        type: 'doc',
        id: 'Serverless API',
      },
      items: [
        {
          type: 'doc',
          id: 'Serverless API-voice url',
        },

        {
          type: 'doc',
          id: 'Serverless API-integration',
        },
      ],
    },

    {
      type: 'category',
      collapsed: true,
      label: '个人与组织',
      items: [
        {
          type: 'doc',
          id: 'organization/personal-dashboard',
        },

        {
          type: 'doc',
          id: 'organization/create-organization',
        },
        {
          type: 'doc',
          id: 'organization/organization-dashboard',
        },
        {
          type: 'doc',
          id: 'organization/organization-management',
        },
        {
          type: 'doc',
          id: 'organization/access-token',
        },
        {
          type: 'doc',
          id: 'organization/statistics',
        },
      ],
    },
    {
      type: 'category',
      collapsed: true,
      label: '费用与订单',
      items: [
        {
          type: 'doc',
          id: 'billing/balance',
        },
        {
          type: 'doc',
          id: 'billing/orders',
        },
      ],
    },
    {
      type: 'doc',
      id: 'question-answer',
    },
  ],
};

export default sidebars;
